
#include "BasicNode.h"
#include "Common/Errors.h"

using namespace ttg;
using namespace ttg_internal::pipeline;

//-----------------
//--- BasicNode ---
//-----------------

InternalContext &BasicNode::getIContext()
{
#ifdef TTG_DEBUG
	if (context == NULL)
		throw ttg::Error(Error::FATAL, "BasicNode", "getContext", "Internal error: context was not setted");
#endif
	return *context;
}
